

#迁移脚本
from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager

from main import app
from models.users import db

from models.users import Toos,Fees

# 控制器可以接受有命令行输入的命令
manager = Manager(app)
migrate = Migrate(app,db)
# 注册命令
manager.add_command('db',MigrateCommand)

if __name__ == '__main__':
    manager.run()
